<?php

namespace app\controller\api\sdk;

use app\datalog\sdk\XyxSdkLog;
use support\Request;

class XyxController
{
    public function log(Request $request)
    {
        $data = $request->all();
        $data['ip'] = $request->getRealIp();
        XyxSdkLog::getInstance()->addLog($data);

        return yqok();
    }
}
